package com.wopinla.service.impl;
import com.wopinla.dao.CommentDao;
import com.wopinla.dao.ConsultDao;

import com.wopinla.pojo.*;

import com.wopinla.pojo.consult;
import com.wopinla.service.ConsultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service   //添加注解


public class ConsultServiceImpl implements ConsultService{
    //注入dao层（调用dao）
    @Autowired
    private ConsultDao consultDao;

    @Override
    public int addconsult(Map<String, Object> map)
    {
        return  consultDao.addconsult(map);
    }

    @Override
    public List<consult> checkallconsult()
    {
        return consultDao.checkallconsult();
    }

    @Override
    public List<consult> selectconsult()
    {
        return consultDao.selectconsult();
    }

    @Override
    public int updateconsult(Map<String,Object> map)
    {
        return consultDao.updateconsult(map);
    }
}
